<%--
  User: ljc,Date: 2025/11/5,Time: 10:29  
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>新建学生</title>
</head>
<body>
<%
    Object msg=session.getAttribute("edit_stu_msg");
    if(msg!=null){
      out.println("<p style='color:red'>"+msg+"</p>");
      session.removeAttribute("edit_stu_msg");
    }
%>
<%
    String name=request.getParameter("name");
    String java=request.getParameter("java");
    String math=request.getParameter("math");
%>
<form action="<%=request.getContextPath()%>/saveStu">
    姓名：<input type="text" name="name" required value="<%=name!=null?name:""%>"><br>
    java: <input type="number" name="java" required min="0" max="100" value="<%=java!=null?java:""%>"><br>
    math: <input type="number" name="math" required min="0" max="100" value="<%=math!=null?math:""%>"><br>
    <input type="submit">
</form>
</body>
</html>
